package com.home.truc.code.components;

import javax.swing.JWindow;
import javax.swing.JLabel;
import java.awt.BorderLayout;

import javax.swing.SwingConstants;
import java.awt.SystemColor;
import java.awt.Font;
import java.awt.Color;
import javax.swing.JPanel;
import javax.swing.border.LineBorder;
import javax.swing.border.TitledBorder;

public class infoCursor extends JWindow{
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	JLabel LabelInfo = null;
	public infoCursor() {
		getContentPane().setBackground(SystemColor.desktop);
		JPanel panel = new JPanel();
		panel.setBackground(SystemColor.info);
		
		panel.setBorder(new TitledBorder(null, "", TitledBorder.LEADING, TitledBorder.TOP, null, null));
		getContentPane().add(panel, BorderLayout.CENTER);
		panel.setLayout(new BorderLayout(0, 0));
		
		
		LabelInfo = new JLabel("New label");
		panel.add(LabelInfo);
		LabelInfo.setForeground(Color.BLACK);
		LabelInfo.setFont(new Font("Tahoma", Font.BOLD, 12));
		LabelInfo.setBackground(SystemColor.info);
		LabelInfo.setHorizontalAlignment(SwingConstants.CENTER);
	}
	
	public void SetInfo(String s)
	{
		this.LabelInfo.setText(s);
	}

}
